@mixin group-padding {
    padding: 0.341rem;
}

.sidebar-right {
    @include md3_decel;
    @include large-rounding;
    @include elevation-border;
    @include elevation2;
    // min-width: 29.591rem;
    // min-height: 29.591rem;
    background-color: $t_background;
    padding: 1.023rem;
}

.sideright-show {
    @include md3_decel;
}

.sideright-hide {
    @include md3_accel;
    margin-right: -30.682rem;
    // opacity: 0;
}

.sidebar-left {
    @include md3_decel;
    @include large-rounding;
    @include elevation-border;
    @include elevation2;
    // min-width: 29.591rem; // COMMENT THIS LATER IF TEXT WRAP IS USED
    // min-height: 29.591rem;
    background-color: $t_background;
    padding: 1.023rem;
}

.sideleft-show {
    @include md3_decel;
}

.sideleft-hide {
    margin-left: -30.682rem;
    // opacity: 0;
    @include md3_accel;
}

.sidebar-group {
    @include normal-rounding;
    // @include elevation-border;
    @include group-padding;
    background-color: $t_surface;
}

.sidebar-group-nopad {
    @include normal-rounding;
    // @include elevation-border;
    background-color: $t_surface;
}

.sidebar-group-invisible {
    @include group-padding;
}

.sidebar-group-invisible-morehorizpad {
    padding: 0.341rem 0.682rem;
}

.sidebar-iconbutton {
    @include full-rounding;
    @include md3_decel;
    color: $onSurface;
    min-width: 2.727rem;
    min-height: 2.727rem;
}

.sidebar-iconbutton:hover {
    background-color: mix($t_secondaryContainer, $t_onSecondaryContainer, 80%);
}

.sidebar-iconbutton:active {
    background-color: mix($t_secondaryContainer, $t_onSecondaryContainer, 60%);
}

.sidebar-button {
    @include md3_decel;
    padding: 0rem $rounding_small;
    background-color: $t_secondaryContainer;
    color: $onSecondaryContainer;
}

.sidebar-button-nopad {
    @include md3_decel;
    background-color: $t_secondaryContainer;
    color: $onSecondaryContainer;
}

.sidebar-button:hover {
    background-color: mix($t_secondaryContainer, $t_onSecondaryContainer, 80%);
}

.sidebar-button:active {
    background-color: mix($t_secondaryContainer, $t_onSecondaryContainer, 60%);
}

.sidebar-button-nopad:hover {
    background-color: mix($t_secondaryContainer, $t_onSecondaryContainer, 80%);
}

.sidebar-button-nopad:active {
    background-color: mix($t_secondaryContainer, $t_onSecondaryContainer, 60%);
}

.sidebar-button-left {
    border-top-left-radius: $rounding_small;
    border-bottom-left-radius: $rounding_small;
}

.sidebar-button-right {
    border-top-right-radius: $rounding_small;
    border-bottom-right-radius: $rounding_mediumsmall;
}

.sidebar-button-alone {
    @include small-rounding;
}

.sidebar-button-alone-normal {
    @include small-rounding;
}

.sidebar-button-active {
    background-color: $primary;
    color: $onPrimary;
}

.sidebar-button-active:hover {
    background-color: mix($primary, $hovercolor, 90%);
}

.sidebar-button-active:active {
    background-color: mix($primary, $hovercolor, 70%);
}

.sidebar-buttons-separator {
    min-width: 0.068rem;
    min-height: 0.068rem;
    background-color: $onSurfaceVariant;
}

.sidebar-navrail {
    // background-color: $t_surface;
    padding: 0rem $rounding_medium;
}

.sidebar-navrail-btn>box>label {
    @include full-rounding;
    @include md3_decel;
}

.sidebar-navrail-btn:hover>box>label:first-child {
    background-color: mix($t_surfaceVariant, $onSurfaceVariant, 90%);
}

.sidebar-navrail-btn:active>box>label:first-child {
    background-color: mix($surfaceVariant, $onSurfaceVariant, 75%);
}

.sidebar-navrail-btn-active>box>label:first-child {
    background-color: $secondaryContainer;
    color: $onSecondaryContainer;
}

.sidebar-navrail-btn-active:hover>box>label:first-child {
    background-color: mix($secondaryContainer, $hovercolor, 90%);
    color: mix($onSecondaryContainer, $hovercolor, 90%);
}

.sidebar-sysinfo-grouppad {
    padding: 1.159rem;
}

.sidebar-memory-ram-circprog {
    @include fluent_decel_long;
    min-width: $rounding_small;
    min-height: 4.091rem;
    padding: 0.409rem;
    background-color: $secondaryContainer;
    color: $onSecondaryContainer;
    font-size: 0px;
}

.sidebar-memory-swap-circprog {
    @include fluent_decel_long;
    min-width: $rounding_small;
    min-height: 2.255rem;
    padding: 0.409rem;
    margin: 0.918rem;
    background-color: $secondaryContainer;
    color: $onSecondaryContainer;
    font-size: 0px;
}

.sidebar-cpu-circprog {
    min-width: $rounding_small;
    min-height: 3.409rem;
    padding: 0.409rem;
    background-color: $secondaryContainer;
    color: $onSecondaryContainer;
    @include fluent_decel_long;
    font-size: 0px;
}

// .sidebar-sysinfo-txt {
//     font-size: 1.0909rem;
//     @include techfont;
// }

.sidebar-viewport {
    @include small-rounding;
}

.sidebar-scrollbar {
    trough {
        @include full-rounding;
        min-width: 0.545rem;
        background-color: transparent;
    }

    slider {
        @include full-rounding;
        min-width: 0.273rem;
        min-height: 2.045rem;
        background-color: $t_onSurfaceVariant;
    }

    slider:hover {
        background-color: mix($t_onSurfaceVariant, $onSurfaceVariant, 80%);
    }

    slider:active {
        background-color: mix($onSurfaceVariant, $surfaceVariant, 50%);
    }
}

.sidebar-calendar-btn {
    @include full-rounding;
    @include md3_decel;
    min-height: 2.523rem;
    min-width: 2.523rem;
    color: $onSurface;
}

.sidebar-calendar-btn:hover {
    background-color: $hovercolor;
}

.sidebar-calendar-btn:active {
    background-color: $activecolor;
}

.sidebar-calendar-btn-txt {
    margin-left: -10.341rem;
    margin-right: -10.341rem;
}

.sidebar-calendar-btn-today {
    background-color: $primary;
    color: $onPrimary;
}

.sidebar-calendar-btn-today:hover {
    background-color: mix($primary, $hovercolor, 90%);
}

.sidebar-calendar-btn-today:active {
    background-color: mix($primary, $hovercolor, 70%);
}

.sidebar-calendar-btn-othermonth {
    color: mix($onSurface, $surface, 50%);
}

.sidebar-calendar-header {
    margin: 0.341rem;
}

.sidebar-calendar-monthyear-btn {
    @include full-rounding;
    padding: 0rem 0.682rem;
    background-color: $t_surfaceVariant;
    color: $onSurfaceVariant;
}

.sidebar-calendar-monthyear-btn:hover {
    background-color: mix($t_surfaceVariant, $onSurfaceVariant, 95%);
    color: mix($onSurfaceVariant, $surfaceVariant, 95%);
}

.sidebar-calendar-monthyear-btn:active {
    background-color: mix($surfaceVariant, $onSurfaceVariant, 85%);
    color: mix($onSurfaceVariant, $surfaceVariant, 85%);
}

.sidebar-calendar-monthshift-btn {
    @include full-rounding;
    min-width: 2.045rem;
    min-height: 2.045rem;
    background-color: $t_surfaceVariant;
    color: $onSurfaceVariant;
}

.sidebar-calendar-monthshift-btn:hover {
    background-color: mix($t_surfaceVariant, $onSurfaceVariant, 95%);
    color: mix($onSurfaceVariant, $surfaceVariant, 95%);
}

.sidebar-calendar-monthshift-btn:active {
    background-color: mix($surfaceVariant, $onSurfaceVariant, 85%);
    color: mix($onSurfaceVariant, $surfaceVariant, 85%);
}

.sidebar-todo-selector-tab {
    @include small-rounding;
    transition: 0ms;
    min-height: 2.5rem;
    color: $onSurface;
}

.sidebar-todo-selector-tab:hover {
    background-color: mix($t_surfaceVariant, $onSurfaceVariant, 90%);
}

.sidebar-todo-selector-tab:active {
    background-color: mix($surfaceVariant, $onSurfaceVariant, 75%);
}

.sidebar-todo-selector-tab-active>box>label {
    color: $primary;
}

.sidebar-todo-selector-highlight-offset {
    margin-top: -0.205rem;
    margin-bottom: 0.205rem;
}

.sidebar-todo-selector-highlight {
    transition: 180ms ease-in-out; // Doesn't look that good, but it syncs with GtkStack animation of the actual todo widget content
    color: $primary;
    padding: 0rem 2.045rem;
    min-height: 0.205rem;
}

.sidebar-todo-item {
    padding-right: 0.545rem;
}

.sidebar-todo-item-even {
    background-color: $t_t_surfaceVariant;
}

.sidebar-todo-item-action {
    border-radius: 9999px;
    min-width: 1.705rem;
    min-height: 1.705rem;
}

.sidebar-todo-item-action:hover {
    background-color: mix($t_surface, $t_onSurface, 80%);
}

.sidebar-todo-item-action:active {
    background-color: mix($t_surface, $t_onSurface, 65%);
}

.sidebar-todo-crosser {
    transition: margin 200ms cubic-bezier(0.1, 1, 0, 1), background-color 0ms;
    min-width: 0rem;
}

.sidebar-todo-crosser-crossed {
    background-color: $onBackground;
}

.sidebar-todo-crosser-removed {
    background-color: $error;
}

.sidebar-clipboard-item {
    border-radius: $rounding_small;
    min-height: 2.045rem;
    padding: 0.341rem;
    background-color: $t_secondaryContainer;
    color: $onSecondaryContainer;
}

.sidebar-clipboard-item:hover {
    background-color: mix($t_secondaryContainer, $t_onSecondaryContainer, 90%);
}

.sidebar-clipboard-item:active {
    background-color: mix($t_secondaryContainer, $t_onSecondaryContainer, 80%);
}

.sidebar-todo-new {
    @include full-rounding;
    color: $onSecondaryContainer;
    margin: 0.341rem;
    padding: 0.205rem 0.545rem;
    border: 0.068rem solid $onSurface;
}

.sidebar-todo-new:hover {
    background-color: mix($t_secondaryContainer, $t_onSecondaryContainer, 97%);
}

.sidebar-todo-new:active {
    background-color: mix($t_secondaryContainer, $t_onSecondaryContainer, 80%);
}

.sidebar-todo-add {
    @include full-rounding;
    @include md3_decel;
    min-width: 1.705rem;
    min-height: 1.705rem;
    color: $onSecondaryContainer;
    border: 0.068rem solid $onSurface;
}

.sidebar-todo-add:hover {
    background-color: mix($t_secondaryContainer, $t_onSecondaryContainer, 97%);
}

.sidebar-todo-add:active {
    background-color: mix($t_secondaryContainer, $t_onSecondaryContainer, 80%);
}

.sidebar-todo-add-available {
    @include md3_decel;
    @include full-rounding;
    min-width: 1.705rem;
    min-height: 1.705rem;
    background-color: $primary;
    color: $onPrimary;
    border: 0.068rem solid $primary;
}

.sidebar-todo-add-available:hover {
    background-color: mix($primary, $onPrimary, 97%);
}

.sidebar-todo-add-available:active {
    background-color: mix($primary, $onPrimary, 80%);
}

.sidebar-todo-entry {
    @include md3_decel;
    @include small-rounding;
    background-color: $surfaceVariant;
    color: $onSurfaceVariant;
    caret-color: $onSurfaceVariant;
    margin: 0rem 0.341rem;
    min-height: 1.773rem;
    min-width: 0rem;
    padding: 0.205rem 0.682rem;
    border: 0.068rem solid mix($onSurfaceVariant, $surfaceVariant, 50%);
}

.sidebar-todo-entry:focus {
    border: 0.068rem solid mix($onSurfaceVariant, $surfaceVariant, 90%);
}

.sidebar-module {
    @include normal-rounding;
    @include group-padding;
    background-color: $t_surface;
}

.sidebar-module-btn-arrow {
    @include full-rounding;
    @include icon-material;
    background-color: $t_surfaceVariant;
    min-width: 1.705rem;
    min-height: 1.705rem;
}